import pyautogui
'''
获得鼠标所在位置的RBGA颜色
'''
p = pyautogui.position()
color = pyautogui.screenshot().getpixel((p.x, p.y))
print(f'RGBA:{color}')